package com.loan.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.loan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author shiguang on 2022/9/7 15:54
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("vn_repayment_log")
@ExcelIgnoreUnannotated
@ApiModel("还款记录表")
public class RepaymentLogEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单ID
     */
    private Long applyId;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 还款金额
     */
    private Integer repaymentMoney;

    /**
     * 类型 1：线上还款  2：线下还款
     */
    private String type;

    /**
     * 状态  0：还款中  1：还款失败  2：还款成功
     */
    private String status;

    /**
     * 还款时间
     */
    private Date repaymentTime;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private String orderSn;

    @TableField(exist = false)
    private String companyName;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userPhone;

    private String companyType;

    private String transRef;

    private Long collectionBy;
}
